package model_sys

import (
	"wrblog-api-go/app/model"
	"wrblog-api-go/pkg/utils"
)

type SysFile struct {
	FileId       string     `json:"fileId" form:"fileId" gorm:"primaryKey;autoIncrement"`
	PreImg       string     `json:"preImg" form:"preImg"` //预览图
	FileType     string     `json:"fileType" form:"fileType"`
	FileSize     float64    `json:"fileSize" form:"fileSize"`
	UploadType   string     `json:"uploadType" form:"uploadType"`
	OldName      string     `json:"oldName" form:"oldName"`
	NewName      string     `json:"newName" form:"newName"`
	FileSuffix   string     `json:"fileSuffix" form:"fileSuffix"`
	RelativePath string     `json:"relativePath" form:"relativePath"`
	AbsolutePath string     `json:"absolutePath" form:"absolutePath"`
	UserId       int64      `json:"userId" form:"userId"`
	CreateBy     string     `json:"createBy" form:"createBy"`
	CreateTime   utils.Time `json:"createTime" form:"createTime"` //创建时间
	Remark       string     `json:"remark" form:"remark"`         //备注
}

type SysFilePo struct {
	SysFile
}

type SelectSysFile struct {
	SysFilePo
	model.SelectBaseEntity
}

func (SysFile) TableName() string {
	return "sys_file"
}
